﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using DAO;
using System.Xml;

namespace ViecLamService
{
    // NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in Web.config.
    [ServiceContract]
    public interface IService1
    {
        //////////////////// Trang chủ Ứng Viên //////////////////////////////
        [WebGet(UriTemplate = "ListEnrolls.rss")]
        [OperationContract]
        XmlElement GetListEnrollInformationsRSS();

        [WebGet(UriTemplate = "ListMajors.rss")]
        [OperationContract]
        XmlElement GetListMajorsRSS();

        /////////////////// Trang chi tiết tuyển dụng ///////////////////////////
        [WebGet(UriTemplate = "GetItemEnrollInformation/{id}")]
        [OperationContract]
        XmlElement GetItemEnrollInformation(string id);

        /////////////////// Trang danh sách tuyển dụng theo ngành ///////////////////////
        [WebGet(UriTemplate = "InformationTechnology.rss")]
        [OperationContract]
        XmlElement GetListEnrollsOfInformationTechnology();

        [WebGet(UriTemplate = "Doctor.rss")]
        [OperationContract]
        XmlElement GetListEnrollsOfDoctor();

        [WebInvoke(Method = "POST", UriTemplate = "AddEnrollInformation/{EnrName}/{mota}/{yeucau}/{luong}/{userid}/{age}/{gt}/{eng}/{exp}/{major}/{lname}/{lphone}/{email}")]
        [OperationContract]
        void AddEnrollInformation(string EnrName, string mota, string yeucau, string luong, string userid, string age, string gt, string eng, string exp, string major, string lname, string lphone, string email);
    }
}
